package collection;

import java.util.ArrayList;
import java.util.Collection;

public class CollectionDemo1 {
    public static void main(String[] args) {
        Collection<String> coll = new ArrayList<>();
        coll.add("aaa");
        coll.add("b");
        coll.add("c");
        System.out.println(coll);
        coll.remove("c");
        System.out.println(coll);
        coll.clear();
        System.out.println(coll);
        System.out.println(coll.contains("aaa"));
    }
}
